package com.graduate.twentyone.service.Impl;

import com.graduate.twentyone.domain.Food;
import com.graduate.twentyone.domain.result.QuerySaleByCate;
import com.graduate.twentyone.domain.result.RecentMonth;
import com.graduate.twentyone.mapper.FoodMapper;
import com.graduate.twentyone.service.FoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FoodServiceImpl implements FoodService {
    @Autowired
    FoodMapper foodMapper;

    @Override
    public Integer addfood(Food food) {
        return foodMapper.addfood(food);
    }

    @Override
    public Integer updatefood(Food food) {
        return foodMapper.updatefood(food);
    }

    @Override
    public  List<Food> selectfood() {
        return foodMapper.selectfood();
    }

    @Override
    public  List<Food> clientselectfood() {
        return foodMapper.clientselectfood();
    }


}
